/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question1.polymorphism.service.impl;

import za.ac.cput.pretorius.question1.polymorphism.model.impl.SuperUser;
import za.ac.cput.pretorius.question1.polymorphism.service.LoginService;

/**
 *
 * @author griddy
 */
public class LoginServiceImpl implements LoginService{

    @Override
    public boolean login(String user, String password, SuperUser userAcc) {
        
          if(!user.equals(userAcc.getUserName()) )
            return false;
        else if (!password.equals(userAcc.getPassword()) )
            return false;
        else
            return true;
    }

    
}
